package com.mask.core.effective;

/**
 * ClassName Holder3
 * Create by hx
 * Date 2021/9/3 2:18 下午
 */

public class Holder3<T> {
    private T a;

    public Holder3(T a) {
        this.a = a;
    }
    T get(){
        return a;
    }

    public static void main(String[] args) {
        Holder3<Automobile> holder = new Holder3(new Automobile());
        Automobile automobile = holder.get();
        Holder3<Integer> holder2 = new Holder3<>(5);
        Integer i = holder2.get();

    }
}
